package com.coder.oj.admin.dto;

import com.coder.oj.common.validate.ValidationGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class AdminRoleDto implements Serializable {

    @ApiModelProperty("管理员id")
    @NotNull(message = "管理员id不能为空", groups = {ValidationGroups.Insert.class})
    private Long adminId;

    @ApiModelProperty("角色id")
    @NotEmpty(message = "角色id不能为空", groups = {ValidationGroups.Insert.class})
    private List<Long> roles;
}
